import request from '@/utils/request'

// 获取全部分类列表
export const getAllCategory = () => {
  return request('/home/category/head', 'get')
}

// 热门品牌
export const hotBrand = (params) => {
  return request('/home/brand', 'get', { limit: params })
}

// 商品分类-一级类目-pc
export const getTopCategory = (params) => {
  return request('/category', 'get', { id: params })
}

// 获取二级分类筛选条件数据
export const findSubCategoryFilter = (id) => {
  return request('/category/sub/filter', 'get', { id })
}

// 获取二级分类列表 --- 商品列表_临时
export const findSubCategoryGoods = (params) => {
  return request('/category/goods/temporary', 'post', params)
}
